package com.example.model;

import lombok.Data;
import org.apache.ignite.cache.query.annotations.QuerySqlField;
import java.io.Serializable;

@Data
public class DeviceType implements Serializable {
    private static final long serialVersionUID = 1L;

    @QuerySqlField(index = true)
    private Long id;

    @QuerySqlField(index = true)
    private String name;

    @QuerySqlField
    private String description;

    @QuerySqlField
    private Boolean active;

    public DeviceType(){}

    public DeviceType(Long id, String name, String description,boolean active){
        this.id= id;
        this.name = name;
        this.description = description;
        this.active = active;
    }
}
